<?php

namespace App\Repositories;

use App\Models\Layout;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class LayoutRepository
 * @package App\Repositories
 * @version September 14, 2017, 9:06 am UTC
 *
 * @method Layout findWithoutFail($id, $columns = ['*'])
 * @method Layout find($id, $columns = ['*'])
 * @method Layout first($columns = ['*'])
*/
class LayoutRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'image_type',
        'skip_type',
        'image_name',
        'image2_name',
        'skip_id',
        'skip_url',
        'skip2_id',
        'skip2_url',
        'image',
        'image2',
        'sort'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return Layout::class;
    }
}
